package entity

import "time"

type Order struct {
	ID               int       `gorm:"column:id;PRIMARY_KEY"`
	StoreId          int       `gorm:"column:store_id"`
	UserId           int       `gorm:"column:user_id"`
	Number           string    `gorm:"column:number"`
	Amount           float64   `gorm:"column:amount"`
	RealAmount       float64   `gorm:"column:real_amount"`
	Num              int       `gorm:"column:num"`
	UserCouponId     int       `gorm:"column:user_coupon_id"`
	State            int       `gorm:"column:state"`
	PayState         int       `gorm:"column:pay_state"`
	Remark           string    `gorm:"column:remark"`
	ShouhuoAddress   string    `gorm:"column:shouhuo_address"`
	QuhuoAddress     string    `gorm:"column:quhuo_ddress"`
	Contactphone     string    `gorm:"column:contact_phone"`
	PayAt            time.Time `gorm:"column:pay_at"`
	ExpressOrderCode string    `gorm:"column:expressOrderCode"`
	ExpressBillCode  string    `gorm:"column:expressBillCode"`
	ExpressType      int       `gorm:"column:expressType"`
	CreatedAt        time.Time `gorm:"column:created_at"`
	UpdatedAt        time.Time `gorm:"column:updated_at"`
}

func (Order) TableName() string {
	return "l_order"
}
